<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="{{URL::asset('assets/css/paging.css')}}">
</head>
<body>
    <!-- <a href="{{url('admin/user/demo')}}">退出登录</a> -->
    <!-- {{ Session::get('key') }} -->

    <ul>
        @foreach($region as $item)
            <li>{{$item->name}}</li>
        @endforeach
    </ul>

    <!-- 输出分页 -->
    {{$region->links()}}

    <!-- <div class="form-group code">
        <label>验证码</label>
        <input class="tt-text" name="captcha">
        {!! captcha_img() !!}
    </div> -->


    <form method="post">
        @csrf
        <div class="form-group code">
            <label>验证码</label>
            <input class="tt-text" name="captcha"  class="@error('captcha') is-invalid @enderror">
            <img src="{{captcha_src('code')}}">
            @error('captcha')
                <div class="alert alert-danger">{{ $message }}</div>
            @enderror
        </div>

        

        <input type="submit" value="验证">
    </form>
</body>
</html>